package com.huawei.appmarket.component.feedback.activity;

import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.app.ActionBar;
import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.ColorDrawable;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.AsyncTask.Status;
import android.os.Build.VERSION;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.provider.MediaStore.Images.Media;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.GridView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.fragment.app.FragmentActivity;
import com.huawei.appgallery.foundation.ui.framework.activity.AbstractBaseActivity;
import com.huawei.appgallery.foundation.ui.framework.cardframe.fragment.TaskFragment;
import com.huawei.appgallery.foundation.ui.framework.fragment.LoadingFragment;
import com.huawei.appgallery.serverreqkit.api.bean.ResponseBean;
import com.huawei.appgallery.serverreqkit.api.listener.IServerCallBack;
import com.huawei.appmarket.component.feedback.activity.NewFeedbackActivityProtocol.Request;
import com.huawei.hms.framework.network.restclient.hwhttp.route.IPRoute;
import huawei.widget.HwButton;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedList;
import java.util.List;
import o.azc;
import o.bjx;
import o.bkn;
import o.bkq;
import o.ceh;
import o.PermissionChecker;
import o.cfw;
import o.cgv;
import o.cjk;
import o.cjm;
import o.cjo;
import o.BaseAlertDialog;
import o.cks;
import o.cvt;
import o.BaseRequest;
import o.dfg;
import o.dfj.h;
import o.dfj.i;
import o.dfk;
import o.dfl;
import o.dfm;
import o.dfo;
import o.dfs;
import o.dfu;
import o.dfv;
import o.dfw;
import o.dfy;
import o.Logger;
import o.doc;
import o.dof;
import o.doo;
import o.ContentManager;
import o.ActivityUtil;
import o.evk;
import o.evx;
import o.FragmentTransaction;

public class NewFeedbackActivity extends AbstractBaseActivity<NewFeedbackActivityProtocol> implements com.huawei.appgallery.foundation.ui.framework.cardframe.fragment.TaskFragment.e, OnClickListener, ceh {
    private HwButton ʻॱ;
    private View ʽॱ;
    private RelativeLayout ʾ;
    private String ʿ;
    private RelativeLayout ˈ;
    private TextView ˉ;
    private String ˊˊ = "";
    private RelativeLayout ˊˋ;
    private Context ˊॱ;
    private TextView ˊᐝ;
    private FeedBackCounterTextLayout ˋˊ;
    private Handler ˋˋ = new Handler(this) {
        final /* synthetic */ NewFeedbackActivity ˋ;

        {
            this.ˋ = r1;
        }

        public void handleMessage(Message message) {
            switch (message.what) {
                case 1001:
                    ॱ();
                    break;
            }
            super.handleMessage(message);
        }

        private void ॱ() {
            int size = this.ˋ.ˋॱ.size() - 1;
            if (ˋ(size) || size == -1) {
                this.ˋ.ˋॱ.add(this.ˋ.ॱˊ);
            }
            ˋ();
        }

        private boolean ˋ(int i) {
            if (this.ˋ.ˋॱ.size() >= 4 || i < 0 || this.ˋ.ˋॱ.get(i) == null) {
                return false;
            }
            return true;
        }

        private void ˋ() {
            if (this.ˋ.ˏॱ != null) {
                this.ˋ.ˏॱ.notifyDataSetChanged();
            }
        }
    };
    private List<dfg> ˋॱ = new ArrayList();
    private OnItemClickListener ˋᐝ = new OnItemClickListener(this) {
        final /* synthetic */ NewFeedbackActivity ˊ;

        {
            this.ˊ = r1;
        }

        public void onItemClick(AdapterView<?> adapterView, View view, int i, long j) {
            if (!this.ˊ.ͺ && !this.ˊ.ˊˊ()) {
                int size = this.ˊ.ˋॱ.size() - 1;
                if (i == size && size < 4 && this.ˊ.ˋॱ.get(i) == null) {
                    this.ˊ.ͺ = true;
                    this.ˊ.ˎ(this.ˊ, 3021);
                }
            }
        }
    };
    private d ˍ;
    private a ˎˎ;
    private FeedbackShowImageAdapter ˏॱ;
    private boolean ͺ = false;
    private dfg ॱˊ = null;
    private EditText ॱˋ;
    private dfk ॱˎ;
    private CheckBox ᐝॱ;

    static class a {
        private Activity ˊ;
        private List<dfg> ˋ;
        private dfg ˏ;
        private FeedbackShowImageAdapter ॱ;

        public a(Activity activity) {
            this.ˊ = activity;
        }

        public void ˏ(List<dfg> list, FeedbackShowImageAdapter feedbackShowImageAdapter, dfg o_dfg, Intent intent) {
            this.ˋ = list;
            this.ॱ = feedbackShowImageAdapter;
            this.ˏ = o_dfg;
            if (intent != null) {
                ˏ(intent);
            }
        }

        private void ˏ(Intent intent) {
            Uri data = intent.getData();
            String ˏ = dfv.ˏ(this.ˊ, data);
            String type = intent.getType();
            if (TextUtils.isEmpty(ˏ) && data != null) {
                ˏ = dfv.ˎ(data, this.ˊ);
            }
            if (TextUtils.isEmpty(type)) {
                type = "image/jpeg";
            }
            ˊ(ˏ, type, data);
        }

        private void ˊ(String str, String str2, Uri uri) {
            if (!dfv.ˋ(str)) {
                evk.ˋ(this.ˊ, this.ˊ.getString(h.ˏ), 0).ˋ();
            } else if (ˎ(str)) {
                ˎ(str, str2, uri);
            }
        }

        private boolean ˎ(String str) {
            if (TextUtils.isEmpty(str) || !new File(str).exists()) {
                return false;
            }
            Bitmap decodeFile = BitmapFactory.decodeFile(str);
            if (decodeFile == null) {
                evk.ˋ(this.ˊ, this.ˊ.getString(h.ˏ), 0).ˋ();
                return false;
            }
            if (!decodeFile.isRecycled()) {
                decodeFile.recycle();
            }
            return true;
        }

        private void ˎ(String str, String str2, Uri uri) {
            if (this.ˋ != null && !TextUtils.isEmpty(str) && uri != null) {
                dfg o_dfg = new dfg();
                o_dfg.ˋ(str);
                o_dfg.ˎ(uri);
                o_dfg.ˏ(str2);
                int size = this.ˋ.size() - 1;
                if (size >= 0 && this.ˋ.get(size) == null) {
                    this.ˋ.remove(size);
                }
                this.ˋ.add(o_dfg);
                if (this.ˋ.size() < 4) {
                    this.ˋ.add(this.ˏ);
                }
                ॱ();
            }
        }

        private void ॱ() {
            if (this.ॱ != null) {
                this.ॱ.notifyDataSetChanged();
            }
        }
    }

    class b extends AsyncTask<Object, Void, Integer> {
        final /* synthetic */ NewFeedbackActivity ˊ;

        private b(NewFeedbackActivity newFeedbackActivity) {
            this.ˊ = newFeedbackActivity;
        }

        protected /* synthetic */ Object doInBackground(Object[] objArr) {
            return ˎ(objArr);
        }

        protected /* synthetic */ void onPostExecute(Object obj) {
            ˊ((Integer) obj);
        }

        protected void onPreExecute() {
            super.onPreExecute();
            this.ˊ.ॱˎ = new dfk(this.ˊ.ˊॱ, i.ˊ);
            this.ˊ.ॱˎ.show();
        }

        protected Integer ˎ(Object... objArr) {
            return Integer.valueOf(this.ˊ.ˋ((String) objArr[0]));
        }

        protected void ˊ(Integer num) {
            if (num.intValue() == 2) {
                this.ˊ.ॱˎ.dismiss();
                evk.ˋ(azc.ॱ(ContentManager.getInstant().getContext()), this.ˊ.getResources().getString(h.ʼ), 1).ˋ();
                this.ˊ.ˋˊ();
                this.ˊ.ॱˊ();
            }
            if (num.intValue() == 3) {
                this.ˊ.ॱˎ.dismiss();
                evk.ˋ(azc.ॱ(ContentManager.getInstant().getContext()), this.ˊ.getResources().getString(h.ʻ), 1).ˋ();
                this.ˊ.ˋˊ();
                this.ˊ.ॱˊ();
            }
        }
    }

    class c implements IServerCallBack {
        final /* synthetic */ NewFeedbackActivity ˋ;

        private c(NewFeedbackActivity newFeedbackActivity) {
            this.ˋ = newFeedbackActivity;
        }

        public void prePostResult(BaseRequest o_cvu, ResponseBean responseBean) {
        }

        public void notifyResult(BaseRequest o_cvu, ResponseBean responseBean) {
            if (responseBean != null && responseBean.getResponseCode() == 0 && responseBean.getRtnCode_() == 0) {
                this.ˋ.ॱˎ.dismiss();
                evk.ˋ(azc.ॱ(ContentManager.getInstant().getContext()), this.ˋ.getResources().getString(h.ʼ), 1).ˋ();
                this.ˋ.ॱˊ();
                return;
            }
            this.ˋ.ॱˎ.dismiss();
            evk.ˋ(azc.ॱ(ContentManager.getInstant().getContext()), this.ˋ.getResources().getString(h.ʻ), 1).ˋ();
            this.ˋ.ॱˊ();
        }
    }

    static class d {
        private Context ˋ;

        public d(Context context) {
            this.ˋ = context;
        }

        public File ˊ(List<dfg> list, boolean z, String str) throws IOException {
            if (doc.ˋ()) {
                if (list != null && list.size() > 1) {
                    for (dfg o_dfg : list) {
                        if (o_dfg != null) {
                            String ˋ = o_dfg.ˋ();
                            if (ˋ != null) {
                                dfw.ॱ(this.ˋ, ˋ);
                            }
                        }
                    }
                }
                Collection ˊ = dfw.ˊ(dfw.ˋ(this.ˋ));
                if (z) {
                    ॱ(ˊ, str);
                }
                if (ˊ != null && ˊ.size() > 0) {
                    File ʽ = dfw.ʽ(this.ˋ);
                    dfy.ˏ(ˊ, ʽ);
                    if (dfu.ˊ(dfw.ॱ(this.ˋ), 3) > 10.0d) {
                        return null;
                    }
                    return ʽ;
                }
            }
            return null;
        }

        private void ॱ(LinkedList<File> linkedList, String str) {
            try {
                File ˏ = dfw.ˏ(dfw.ˎ(this.ˋ));
                File ˏ2 = dfw.ˏ(dfw.ˏ(this.ˋ));
                String ˎ = dfw.ˎ(str);
                String ˊ = dfw.ˊ(this.ˋ, str);
                File file = new File(ˎ);
                Collection linkedList2 = new LinkedList();
                File file2 = new File(ˊ);
                Collection linkedList3 = new LinkedList();
                if (dfu.ˊ(ˎ)) {
                    if (file.isDirectory() && file.exists()) {
                        dfy.ˏ(dfw.ˊ(dfw.ˎ(str)), ˏ);
                    } else {
                        linkedList2.add(file);
                        dfy.ˏ(linkedList2, ˏ);
                    }
                }
                if (dfu.ˊ(ˊ)) {
                    if (file2.isDirectory() && file2.exists()) {
                        dfy.ˏ(dfw.ˊ(dfw.ˊ(this.ˋ, str)), ˏ2);
                    } else {
                        linkedList3.add(file2);
                        dfy.ˏ(linkedList3, ˏ2);
                    }
                }
                double ˊ2 = dfu.ˊ(dfw.ˎ(this.ˋ), 3);
                double ˊ3 = dfu.ˊ(dfw.ˏ(this.ˋ), 3);
                if (ˊ3 == 0.0d && ˊ2 > 0.0d && ˊ2 <= 1.0d) {
                    linkedList.add(ˏ);
                }
                if (ˊ3 == 0.0d && ˊ2 > 1.0d) {
                    dfw.ॱ(ˏ);
                }
                if (ˊ2 == 0.0d && ˊ3 > 0.0d && ˊ3 <= 1.0d) {
                    linkedList.add(ˏ2);
                }
                if (ˊ2 == 0.0d && ˊ3 > 1.0d) {
                    dfw.ॱ(ˏ2);
                }
                if (ˊ2 > 0.0d && ˊ3 > 0.0d && ˊ2 + ˊ3 <= 1.0d) {
                    linkedList.add(ˏ);
                    linkedList.add(ˏ2);
                }
                if (ˊ2 > 0.0d && ˊ3 > 0.0d && ˊ2 + ˊ3 > 1.0d) {
                    dfw.ॱ(ˏ);
                    dfw.ॱ(ˏ2);
                }
            } catch (Throwable th) {
                Logger.e("NewFeedbackActivity", "dealWithInnerOuterFile Exception");
            }
        }
    }

    class e implements TextWatcher {
        final /* synthetic */ NewFeedbackActivity ˊ;

        private e(NewFeedbackActivity newFeedbackActivity) {
            this.ˊ = newFeedbackActivity;
        }

        public void afterTextChanged(Editable editable) {
            if (editable.length() > 0) {
                this.ˊ.ʻॱ.setEnabled(true);
                this.ˊ.ʻॱ.setAlpha(1.0f);
                return;
            }
            this.ˊ.ʻॱ.setEnabled(false);
            this.ˊ.ʻॱ.setAlpha(0.3f);
        }

        public void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) {
        }

        public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {
        }
    }

    static class f {
        private FragmentActivity ˎ;

        public f(FragmentActivity fragmentActivity) {
            this.ˎ = fragmentActivity;
        }

        public boolean ˋ(TaskFragment taskFragment, com.huawei.appgallery.foundation.ui.framework.cardframe.fragment.TaskFragment.b bVar) {
            if (ˏ(bVar)) {
                return ˎ(taskFragment, bVar);
            }
            if (taskFragment instanceof LoadingFragment) {
                LoadingFragment loadingFragment = (LoadingFragment) taskFragment;
                dfo ˎ = dfo.ˎ(bVar.ˊ, bVar.ˋ, null);
                loadingFragment.ˏ(ˎ.ॱ(), ˎ.ˊ());
            }
            return false;
        }

        private boolean ˎ(TaskFragment taskFragment, com.huawei.appgallery.foundation.ui.framework.cardframe.fragment.TaskFragment.b bVar) {
            if (!(bVar.ˋ instanceof FeedbackLogQueryResponse)) {
                return false;
            }
            ˋ(taskFragment);
            return true;
        }

        private boolean ˏ(com.huawei.appgallery.foundation.ui.framework.cardframe.fragment.TaskFragment.b bVar) {
            if (bVar == null || bVar.ˋ == null || bVar.ˋ.getResponseCode() != 0 || bVar.ˋ.getRtnCode_() != 0) {
                return false;
            }
            return true;
        }

        private void ˋ(TaskFragment taskFragment) {
            if (!ActivityUtil.isAcitivtyNotValid(this.ˎ)) {
                FragmentTransaction ˊ = this.ˎ.ˏॱ().ˊ();
                if (taskFragment != null) {
                    try {
                        ˊ.ˊ(taskFragment);
                    } catch (Exception e) {
                        Logger.e("NewFeedbackActivity", "remove theFragmentException.");
                        return;
                    }
                }
                ˊ.ˏ();
            }
        }
    }

    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(o.dfj.b.ʻ);
        this.ˊॱ = this;
        this.ˍ = new d(this);
        this.ˎˎ = new a(this);
        this.ʽॱ = findViewById(o.dfj.a.ˏॱ);
        this.ˉ = (TextView) this.ʽॱ.findViewById(o.dfj.a.ʼॱ);
        NewFeedbackActivityProtocol newFeedbackActivityProtocol = (NewFeedbackActivityProtocol) ʾ();
        if (newFeedbackActivityProtocol == null || newFeedbackActivityProtocol.ˋ() == null) {
            finish();
            return;
        }
        this.ʿ = newFeedbackActivityProtocol.ˋ().ॱ();
        ͺ();
        ˊᐝ();
        ᐝ();
    }

    @SuppressLint({"StringFormatInvalid"})
    protected void ᐝ() {
        this.ˈ = (RelativeLayout) findViewById(o.dfj.a.ॱᐝ);
        this.ʾ = (RelativeLayout) findViewById(o.dfj.a.ʻॱ);
        GridView gridView = (GridView) findViewById(o.dfj.a.ˊ);
        this.ʻॱ = (HwButton) findViewById(o.dfj.a.ͺ);
        this.ॱˋ = (EditText) findViewById(o.dfj.a.ˏ);
        this.ᐝॱ = (CheckBox) findViewById(o.dfj.a.ʽ);
        this.ˋॱ.add(this.ॱˊ);
        this.ˏॱ = new FeedbackShowImageAdapter(this.ˋॱ, this.ˊॱ, this.ˋˋ);
        gridView.setAdapter(this.ˏॱ);
        gridView.setOnItemClickListener(this.ˋᐝ);
        this.ॱˋ.addTextChangedListener(new e());
        this.ʻॱ.setOnClickListener(this);
        this.ʻॱ.setAlpha(0.3f);
        this.ᐝॱ.setOnClickListener(this);
        this.ˊˋ = (RelativeLayout) findViewById(o.dfj.a.ˊॱ);
        gridView.setSelector(new ColorDrawable(0));
        this.ˋˊ = (FeedBackCounterTextLayout) findViewById(o.dfj.a.ʻ);
        this.ˋˊ.setMaxLength(IPRoute.INTERVAL);
        this.ˊᐝ = (TextView) findViewById(o.dfj.a.ॱॱ);
        this.ˊᐝ.setOnClickListener(this);
        this.ˊᐝ.setOnClickListener(new evx(this) {
            final /* synthetic */ NewFeedbackActivity ˏ;

            {
                this.ˏ = r1;
            }

            public void ˋ(View view) {
                this.ˏ.ˎ(this.ˏ.ʿ);
            }
        });
    }

    private void ͺ() {
        Logger.ˎ("NewFeedbackActivity", "start showLoadingFragment");
        new LoadingFragment().ˋ(ˏॱ(), o.dfj.a.ॱᐝ, "TaskFragment");
    }

    private void ॱˊ() {
        new Handler().postDelayed(new Runnable(this) {
            final /* synthetic */ NewFeedbackActivity ˊ;

            {
                this.ˊ = r1;
            }

            public void run() {
                this.ˊ.setResult(1012);
                this.ˊ.finish();
            }
        }, 1000);
    }

    private void ᐝॱ() {
        String ˊ = bkq.ˊ(bkn.ॱ(bjx.ˏ()), true);
        cvt o_dfm = new dfm();
        o_dfm.ˎ(((NewFeedbackActivityProtocol) ʾ()).ˋ().ॱ());
        o_dfm.ˏ(this.ॱˋ.getText().toString());
        o_dfm.ˊ(ˊ);
        o_dfm.setReqContentType(BaseRequest.RequestBodyType.ˊ);
        cfw.ˎ(o_dfm, new c());
    }

    private void ʼॱ() {
        b bVar = new b();
        if (bVar.getStatus() != Status.RUNNING) {
            bVar.execute(new Object[]{this.ॱˋ.getText().toString()});
        }
    }

    public void onClick(View view) {
        int id = view.getId();
        if (id == o.dfj.a.ͺ) {
            ˊˋ();
        } else if (id == o.dfj.a.ʽ) {
            ˊˊ();
        }
    }

    private void ˊˋ() {
        if (!doo.ˊ(this.ˊॱ)) {
            evk.ˋ(this.ˊॱ, getResources().getString(h.ˎ), 0).ˋ();
        } else if (doo.ॱॱ(this.ˊॱ) || this.ˋॱ.size() <= 1) {
            ʼॱ();
        } else {
            ˉ();
        }
    }

    private void ˎ(String str) {
        cjo feedbackListActivityProtocol = new FeedbackListActivityProtocol();
        Request request = new Request();
        request.ॱ(str);
        feedbackListActivityProtocol.ˊ(request);
        cjk.ˎ().ˋ(this.ˊॱ, new cjm("feedback.list.activity", feedbackListActivityProtocol));
    }

    private boolean ˊˊ() {
        return PermissionChecker.ˋ(this, 16);
    }

    @TargetApi(23)
    public void onRequestPermissionsResult(int i, String[] strArr, int[] iArr) {
        if (16 == i) {
            PermissionChecker.ˎ(this, i, strArr, iArr);
        }
    }

    public void ˏ(int i, int i2) {
        if (i2 == -1) {
            this.ᐝॱ.setChecked(false);
        }
    }

    private void ˉ() {
        BaseAlertDialog ˋ = BaseAlertDialog.ˋ(this.ˊॱ, this.ˊॱ.getString(h.ॱ), this.ˊॱ.getString(h.ᐝॱ));
        ˋ.ॱ();
        ˋ.ॱ(BaseAlertDialog.a.ˋ, this.ˊॱ.getString(h.ॱᐝ));
        ˋ.ॱ(BaseAlertDialog.a.ˎ, this.ˊॱ.getString(h.ʻॱ));
        ˋ.ˎ(new cks(this) {
            final /* synthetic */ NewFeedbackActivity ˊ;

            {
                this.ˊ = r1;
            }

            public void enableNetworking() {
                this.ˊ.ʼॱ();
            }

            public void upgrade() {
            }

            public void ˋ() {
            }
        });
    }

    private void ˋˊ() {
        dfw.ॱ(new File(dfw.ˊ(this.ˊॱ)));
    }

    private int ˋ(String str) {
        try {
            File ˊ = this.ˍ.ˊ(this.ˋॱ, this.ᐝॱ.isChecked(), this.ˊˊ);
            if (ˊ == null) {
                ᐝॱ();
                return 1;
            } else if (dfs.ˋ(this.ˊॱ, ˊ, str, this.ʿ)) {
                return 2;
            } else {
                return 3;
            }
        } catch (Throwable th) {
            Logger.e("NewFeedbackActivity", "uploadFeedback Exception");
            return 1;
        }
    }

    private void ˎ(Activity activity, int i) {
        Intent intent;
        try {
            intent = new Intent("android.intent.action.PICK", Media.EXTERNAL_CONTENT_URI);
            intent.setType("vnd.android.cursor.dir/image");
            activity.startActivityForResult(intent, i);
        } catch (Exception e) {
            intent = new Intent("android.intent.action.GET_CONTENT", null);
            intent.setType("image/*");
            try {
                activity.startActivityForResult(intent, i);
            } catch (ActivityNotFoundException e2) {
                Logger.ˋ("NewFeedbackActivity", "ActivityNotFoundException :" + e2.toString());
            }
        }
    }

    public void onActivityResult(int i, int i2, Intent intent) {
        if (i == 3021) {
            this.ͺ = false;
            if (-1 == i2) {
                this.ˎˎ.ˏ(this.ˋॱ, this.ˏॱ, this.ॱˊ, intent);
            }
        }
    }

    public boolean ˋ(TaskFragment taskFragment, com.huawei.appgallery.foundation.ui.framework.cardframe.fragment.TaskFragment.b bVar) {
        if (new f(this).ˋ(taskFragment, bVar)) {
            this.ˈ.setVisibility(8);
            this.ʾ.setVisibility(0);
            if (VERSION.SDK_INT <= 28) {
                this.ˊˊ = ((FeedbackLogQueryResponse) bVar.ˋ).ˎ();
            }
            if (!dof.ॱ(this.ˊˊ)) {
                this.ˊˋ.setVisibility(0);
            }
        }
        return false;
    }

    public void ˎ(TaskFragment taskFragment, List<cvt> list) {
        list.add(new dfl(this.ʿ));
    }

    public boolean onOptionsItemSelected(MenuItem menuItem) {
        if (16908332 != menuItem.getItemId()) {
            return super.onOptionsItemSelected(menuItem);
        }
        finish();
        return true;
    }

    private void ˊᐝ() {
        if (azc.ˎ().ॱ() >= 17) {
            ˎˎ();
        } else {
            ˍ();
        }
        cgv.ˊ(this, o.dfj.d.ˋ);
    }

    private void ˎˎ() {
        this.ʽॱ.setVisibility(8);
        ActionBar actionBar = getActionBar();
        if (actionBar != null) {
            actionBar.setDisplayOptions(12);
            actionBar.setDisplayShowCustomEnabled(false);
            actionBar.show();
            actionBar.setTitle(h.ˋ);
        }
    }

    private void ˍ() {
        ActionBar actionBar = getActionBar();
        if (actionBar != null) {
            actionBar.hide();
        }
        this.ˉ.setText(h.ˋ);
        findViewById(o.dfj.a.ॱˋ).setOnClickListener(new OnClickListener(this) {
            final /* synthetic */ NewFeedbackActivity ˊ;

            {
                this.ˊ = r1;
            }

            public void onClick(View view) {
                this.ˊ.onBackPressed();
            }
        });
    }
}
